package com.ama.dao;

import com.ama.pojo.Bed;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface BedDao extends BaseMapper<Bed> {

    int deleteByPrimaryKey(Long bedId);

    int insertBed(Bed bed);

    int insertSelective(Bed bed);

    Bed selectByPrimaryKey(Long bedId);

    List<Bed> selectByRoomId(Long roomId);

    int updateByPrimaryKeySelective(Bed bed);

    int updateByPrimaryKey(Bed bed);
}